package com.olt.ojdomain;

import javax.persistence.*;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2022-05-11 
 */

@SuppressWarnings("JpaDataSourceORMInspection")
@Setter
@Getter
@ToString
@Entity

@Table ( name ="solution" )
public class Solution  implements Serializable {

	private static final long serialVersionUID =  3150303239982592266L;

	@Id
   	@Column(name = "solution_id" )
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long solutionId;

   	@Column(name = "problem_id" )
	private Long problemId;

   	@Column(name = "user_id" )
	private String userId;

   	@Column(name = "nick" )
	private String nick;

   	@Column(name = "time" )
	private Long time;

   	@Column(name = "memory" )
	private Integer memory;

   	@Column(name = "in_date" )
	private Date inDate;

   	@Column(name = "result" )
	private Integer result;

   	@Column(name = "language" )
	private Integer language;

   	@Column(name = "ip" )
	private String ip;

   	@Column(name = "contest_id" )
	private Integer contestId;

   	@Column(name = "valid" )
	private Integer valid;

   	@Column(name = "num" )
	private Integer num;

   	@Column(name = "code_length" )
	private Long codeLength;

   	@Column(name = "judgetime" )
	private Date judgetime;

   	@Column(name = "pass_rate" )
	private Double passRate;

   	@Column(name = "lint_error" )
	private Integer lintError;

   	@Column(name = "judger" )
	private String judger;

}
